package com.work.farm.service;

import com.github.pagehelper.Page;
import com.work.farm.pojo.TCustFarmEntity;
import com.work.farm.service.impl.FarmServiceImpl;

import java.util.List;
import java.util.Map;

public interface FarmService{

    //查询农场片区
    List find(Integer id,String name,int page,int size);

    void addFarm(TCustFarmEntity tCustFarmEntity);

    void updateFarm(TCustFarmEntity tCustFarmEntity);

    Page<TCustFarmEntity> findByPage(Integer pageNum, Integer pageSize, Map searchMap);

    TCustFarmEntity findById(Integer id);
}
